public class home_work_1{
	public static void main(String args[]){
		int sum=0,i,item=1;
		for(i=1;i<11;i++){
			item*=i;
			sum+=item;
		}
		System.out.println(sum);
	}
}
